package cn.hznc.repository;

import cn.hznc.domain.entity.ToolLifeEntity;
import cn.hznc.domain.request.life.QryToolLifeConfigReq;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author：Administrator
 * @Date：2023/8/15 15:35
 */
public interface ToolLifeRepository {
    List<ToolLifeEntity> selectAssemblyToolList(QryToolLifeConfigReq qryToolLifeConfigReq);

    List<ToolLifeEntity> selectToolList(QryToolLifeConfigReq qryToolLifeConfigReq);

    List<ToolLifeEntity> selectLifeByPartno(@Param("partno") String partno);

    void editLifeByPartno(@Param("partno") String partno,@Param("life") BigDecimal life);
}
